package mest.dao.hws;

import mest.entity.bomsave_manytomany;
import mest.entity.plan_productjob_purchase;
import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_takematerial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface BomSaveManytomanyDao {
    int deleteByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id);

    int insert(@Param("theirDb") String theirDb,@Param("bomSaveManytomany") List<bomsave_manytomany> bomSaveManytomany);

    int insertSelective(@Param("theirDb") String theirDb,@Param("record") bomsave_manytomany record);

    List<bomsave_manytomany> selectByPrimaryKey(@Param("theirDb") String theirDb,@Param("id") Integer id);

    int selectPrimarycount(@Param("theirDb") String theirDb,@Param("id") Integer id);

    int updateByPrimaryKeySelective(@Param("theirDb") String theirDb,@Param("record") bomsave_manytomany record);

    int updateByPrimaryKey(@Param("theirDb") String theirDb,@Param("record") bomsave_manytomany record);

    List<Map> selectAllModel(@Param("theirDb") String theirDb,@Param("poId") Integer poId);

    List<plan_productjob_purchase> ppp(@Param("theirDb") String theirDb, @Param("poId")String poId);

    List<plan_productjob_saleout> selectAllModel2_saleout(@Param("theirDb") String theirDb, @Param("poId") Integer poId);

    List<plan_productjob_takematerial> selectAllModel3_takeMaterial( @Param("theirDb") String theirDb,@Param("poId") Integer poId);

}